package com.ruoyi.group.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.group.mapper.listChangeTimeMapper;
import com.ruoyi.group.domain.listChangeTime;
import com.ruoyi.group.service.IlistChangeTimeService;

/**
 * 工单转接Service业务层处理
 * 
 * @author yb
 * @date 2022-03-12
 */
@Service
public class listChangeTimeServiceImpl implements IlistChangeTimeService 
{
    @Autowired
    private listChangeTimeMapper listChangeTimeMapper;

    /**
     * 查询工单转接
     * 
     * @param repairId 工单转接主键
     * @return 工单转接
     */
    @Override
    public listChangeTime selectlistChangeTimeByRepairId(Integer repairId)
    {
        return listChangeTimeMapper.selectlistChangeTimeByRepairId(repairId);
    }

    /**
     * 查询工单转接列表
     * 
     * @param listChangeTime 工单转接
     * @return 工单转接
     */
    @Override
    public List<listChangeTime> selectlistChangeTimeList(listChangeTime listChangeTime)
    {
        return listChangeTimeMapper.selectlistChangeTimeList(listChangeTime);
    }

    /**
     * 新增工单转接
     * 
     * @param listChangeTime 工单转接
     * @return 结果
     */
    @Override
    public int insertlistChangeTime(listChangeTime listChangeTime)
    {
        listChangeTime.setCreateTime(DateUtils.getNowDate());
        return listChangeTimeMapper.insertlistChangeTime(listChangeTime);
    }

    /**
     * 修改工单转接
     * 
     * @param listChangeTime 工单转接
     * @return 结果
     */
    @Override
    public int updatelistChangeTime(listChangeTime listChangeTime)
    {
        listChangeTime.setUpdateTime(DateUtils.getNowDate());
        return listChangeTimeMapper.updatelistChangeTime(listChangeTime);
    }

    /**
     * 批量删除工单转接
     * 
     * @param repairIds 需要删除的工单转接主键
     * @return 结果
     */
    @Override
    public int deletelistChangeTimeByRepairIds(Integer[] repairIds)
    {
        return listChangeTimeMapper.deletelistChangeTimeByRepairIds(repairIds);
    }

    /**
     * 删除工单转接信息
     * 
     * @param repairId 工单转接主键
     * @return 结果
     */
    @Override
    public int deletelistChangeTimeByRepairId(Integer repairId)
    {
        return listChangeTimeMapper.deletelistChangeTimeByRepairId(repairId);
    }
}
